<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" > 

	<head>

	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

      <meta name="google-site-verification" content="1fu4j3TspQhXFPi3Bx0MmtEScTb4lF0Mn-Jrt62ND-E" />

		<title><?php echo $title; ?></title>

			<link rel="stylesheet" type="text/css" href="<?php echo site_url('crm-themes/default/css/jquery/jquery.ui.all.css'); ?>" media="screen"/>
			<link rel="stylesheet" type="text/css" href="<?php echo site_url('crm-themes/default/css/table_data.css'); ?>" media="screen"/>
			<link rel="stylesheet" type="text/css" href="<?php echo site_url('crm-themes/default/css/lightbox/style.css'); ?>" media="screen"/>
			<link rel="stylesheet" type="text/css" href="<?php echo site_url('crm-themes/default/css/style.css'); ?>" title="style_blue" media="screen"/>
			<link rel="alternate stylesheet" type="text/css" href="<?php echo site_url('crm-themes/default/css/style_green.css'); ?>" title="style_green" media="screen" />
			<link rel="alternate stylesheet" type="text/css" href="<?php echo site_url('crm-themes/default/css/style_red.css'); ?>" title="style_red" media="screen" />
			<link rel="alternate stylesheet" type="text/css" href="<?php echo site_url('crm-themes/default/css/style_purple.css'); ?>" title="style_purple" media="screen" />
			<?php if($title=="dashboard"): ?>
			<link type="text/css" rel="stylesheet" href="<?php echo site_url('crm-themes/default/css/visualize.jQuery.css'); ?>"/>
			<link type="text/css" rel="stylesheet" href="<?php echo site_url('crm-themes/default/css/demopage.css'); ?>"/>
			<?php endif; ?>
			<link rel="stylesheet" type="text/css" href="<?php echo site_url('crm-themes/default/css/jquery.autocomplete.css');?>">

			<!--[if IE]><script type="text/javascript" src="<?php echo site_url('crm-themes/default/js/excanvas.js'); ?>"></script><![endif]-->
			<script type="text/javascript" src="<?php echo site_url('crm-themes/default/js/jquery-1.4.2.js'); ?>"></script>
			
			
			<script type="text/javascript" src="<?php echo site_url('crm-themes/default/js/jquery-ui-1.8.2.js'); ?>"></script>
			<script type="text/javascript" src="<?php echo site_url('crm-themes/default/js/jquery.fancybox-1.3.2.js'); ?>"></script>
			<script type="text/javascript" src="<?php echo site_url('crm-themes/default/js/jquery.validate.js'); ?>" ></script>
			<script type="text/javascript" src="<?php echo site_url('crm-themes/default/js/jquery.wysiwyg.js'); ?>" ></script>
			<script type="text/javascript" src="<?php echo site_url('crm-themes/default/js/jquery.dataTables.js'); ?>"></script>
			<script type="text/javascript" src="<?php echo site_url('crm-themes/default/js/jquery.flot.js'); ?>"></script>
			<script type="text/javascript" src="<?php echo site_url('crm-themes/default/js/jquery.flot.stack.js'); ?>"></script>

			<script type="text/javascript" src="<?php echo site_url('crm-themes/default/js/styleswitch.js'); ?>"></script>

			<script type="text/javascript" src="<?php echo site_url('crm-themes/default/js/custom.js'); ?>"></script>

			<!--<script type="text/javascript" src="<?php echo site_url('crm-themes/default/js/jquery.graphTable-0.2.js'); ?>"></script>-->

            <!--<script type="text/javascript" src="<?php echo site_url('crm-themes/default/js/custom_graphs.js'); ?>"></script>-->

			<?php  if($title=="dashboard"): ?>

				<script type="text/javascript" src="<?php echo site_url('crm-themes/default/js/visualize.jQuery.js'); ?>"></script>

				<script type="text/javascript">

				$(function(){

					//make some charts

					//$('table').visualize({type: 'pie', pieMargin: 10, title: '2009 Total Sales by Individual'});	

					//$('#table').visualize({type: 'line'});

					//$('table').visualize({type: 'area'});

					$('#table').visualize();

                    $('#table2').visualize({type: 'bar',parseDirection:'x'});

					

				});

			  </script>

          <?php  endif; ?>

			<script type="text/javascript" src="<?php echo site_url('crm-themes/default/js/jquery.autocomplete.js'); ?>"></script>
			<script type="text/javascript">
			$(function() {
				$("#form-name").autocomplete({
					url: '<?php echo base_url();?>customers/crm/checkuser',
					showResult: function(value,data) {
						return '<span style="color:red">'+value+'</span>';
					},		
					maxItemsToShow: 15
				});
			});
			</script>



	</head>

  <body>

    <div id="wrapper">



      <ul id="topbar">

        <li><a class="button white fl" title="preview" href="index.html"><span class="icon_logo preview"></span></a></li>

		<li class="s_1"></li>

        <li class="logo"><strong>KubikCRM</strong></li>



		<li class="s_1"></li>

        <li><a class="breadcrumb underline" href="#">Dashboard</a> &gt; <a class="breadcrumb underline" href="#"><strong>General</strong></a></li>

        <li class="fr"><a class="button red fl" title="logout" href="<?php echo site_url($this->config->item('do_logout')); ?>"><span class="icon_text logout"></span>logout</a></li>

        <li class="s_1 fr"></li>

		<!--<li class="fr"><a class="button white fl" title="unread mail" href="#"><span class="icon_text mail"></span>3</a></li>

        <li class="s_1 fr"></li>-->



		<li class="fr"><a class="button white fl" title="admin" href="<?php echo site_url($this->config->item('setting')); ?>"><span class="icon_text admin"></span><?php echo $this->session->userdata('user_id'); ?></a></li>
        <li class="fr"><a class="button white fl" title="admin" href="<?php echo site_url($this->config->item('setting')); ?>"><span class="icon_text admin"></span><?php echo $this->session->userdata('user_posName'); ?></a></li>
		<li class="fr"><a class="button white fl" title="admin" href="<?php echo site_url($this->config->item('setting')); ?>"><span class="icon_text admin"></span><?php echo $this->session->userdata('group_name'); ?></a></li>
		<li class="fr"><a id="logged">Logged in as</a></li>

      </ul>

	  

      <ul id="navbar">

        <li class="<?php echo $menu['dashboard_active'];?>">

		<a href="<?php echo site_url($this->config->item('dashboard')); ?>"><span class="icon_text dashboard"></span><?php echo $this->lang->line('dashboard'); ?></a>

			<ul>

				<?php if($tab['tab1']) { ?><li class="<?php echo $tab['tab1_active'];?>"><a class="subbutton white" href="<?php echo site_url($tab['tab1_link']); ?>"><span class="icon_text general"></span><?php echo $tab['tab1']; ?></a></li><?php } ?>

				<?php if($tab['tab2']) { ?><li class="<?php echo $tab['tab2_active'];?>"><a class="subbutton white" href="<?php echo site_url($tab['tab2_link']); ?>"><span class="icon_text tab"></span><?php echo $tab['tab2']; ?></a></li><?php } ?>

				<?php if($tab['tab3']) { ?><li class="<?php echo $tab['tab3_active'];?>"><a class="subbutton white" href="<?php echo site_url($tab['tab3_link']); ?>"><span class="icon_text typography"></span><?php echo $tab['tab3']; ?></a></li><?php } ?>

				<?php if($tab['tab4']) { ?><li class="<?php echo $tab['tab4_active'];?>"><a class="subbutton white" href="<?php echo site_url($tab['tab4_link']); ?>"><span class="icon_text grids"></span><?php echo $tab['tab4']; ?></a></li><?php } ?>

				<?php if($tab['tab5']) { ?><li class="<?php echo $tab['tab5_active'];?>"><a class="subbutton white" href="<?php echo site_url($tab['tab5_link']); ?>"><span class="icon_text tables"></span><?php echo $tab['tab5']; ?></a></li><?php } ?>

				<?php if($tab['tab6']) { ?><li class="<?php echo $tab['tab6_active'];?>"><a class="subbutton white" href="<?php echo site_url($tab['tab6_link']); ?>"><span class="icon_text forms"></span><?php echo $tab['tab6']; ?></a></li><?php } ?>



				<?php if($tab['tab7']) { ?><li class="<?php echo $tab['tab7_active'];?>"><a class="subbutton white" href="<?php echo site_url($tab['tab7_link']); ?>"><span class="icon_text graphs"></span><?php echo $tab['tab7']; ?></a></li><?php } ?>

				<?php if($tab['tab8']) { ?><li class="<?php echo $tab['tab8_active'];?>"><a class="subbutton white" href="<?php echo site_url($tab['tab8_link']); ?>"><span class="icon_text gallery"></span><?php echo $tab['tab8']; ?></a></li><?php } ?>

			</ul>

		</li>

  

        <?php if($this->session->userdata('menu1') ): ?>

        <li class="<?php echo $menu['contact_active'];?>"><a href="<?php echo site_url($this->config->item('customer').'0'); ?>"><span class="icon_text content"></span><?php echo $this->lang->line('customers'); ?></a></li>

        <?php endif;?>

        

        <?php if($this->session->userdata('menu10') ): ?>

        <li class="<?php echo $menu['contactdna_active'];?>"><a href="<?php echo site_url($this->config->item('customerdna')); ?>"><span class="icon_text content"></span><?php echo $this->lang->line('other_contact'); ?></a></li>

        <?php endif;?>

        

        <?php if($this->session->userdata('menu2')== 1 ): ?>

        <li class="<?php echo $menu['activity_active'];?>"><a href="<?php echo site_url($this->config->item('activity')); ?>"><span class="icon_text design"></span><?php echo $this->lang->line('activity'); ?></a></li>

        <?php endif;?>

        

        <?php if($this->session->userdata('menu3')== 1 ): ?>

        <li class="<?php echo $menu['job_active'];?>"><a href="<?php echo site_url($this->config->item('job')); ?>"><span class="icon_text pages"></span><?php echo $this->lang->line('job'); ?></a></li>

		<?php endif;?>

        

        <?php if($this->session->userdata('user_group')== $this->config->item('admin') ): ?>

        <li class="<?php echo $menu['user_active'];?>"><a href="<?php echo site_url($this->config->item('users')); ?>"><span class="icon_text users"></span><?php echo $this->lang->line('users'); ?></a></li>

        <?php endif;?>

        

        <?php if($this->session->userdata('menu4')== 1 ): ?>

        <li class="<?php echo $menu['call_active'];?>"><a href="<?php echo site_url($this->config->item('call')); ?>"><span class="icon_text users"></span><?php echo $this->lang->line('call'); ?></a></li>

        <?php endif;?>

        

        <?php if($this->session->userdata('user_group')== $this->config->item('admin') ): ?>

        <li class="<?php echo $menu['report_active'];?>"><a href="<?php echo site_url($this->config->item('report')); ?>"><span class="icon_text media"></span><?php echo $this->lang->line('report'); ?></a></li>

        <?php endif; ?>

        

        <!--<li class="<?php echo $menu['master_active'];?>"><a href="<?php echo site_url($this->config->item('user')); ?>"><span class="icon_text comment"></span><?php echo $this->lang->line('master'); ?></a></li>

        <li class="<?php echo $menu['graphic_active'];?>"><a href="<?php echo site_url($this->config->item('customer')); ?>"><span class="icon_text stats"></span><?php echo $this->lang->line('graphic'); ?></a></li>

        -->

        <li class="<?php echo $menu['setting_active'];?>"><a href="<?php echo site_url($this->config->item('setting')); ?>"><span class="icon_text settings"></span><?php echo $this->lang->line('setting'); ?></a></li>

      </ul>



	  <div id="subnavbar">

		<!--<form id="search_form" method="post" action="">

			<input type="text" name="search_input" value="Search..." id="search_input" class="fl" />

		</form>-->

	  </div>



	  <!-- Content -->

      <div id="content">

	    <div class="clear"></div>

        <?php echo $this->load->view($content); ?>

        <div class="clear"></div>

      </div>

	  <!-- Content -->

	  

    </div>

	<div id="footer">

      <p class="copy fl"><?php echo $this->lang->line('copyright') .'' .$this->lang->line('year') ;?><strong></strong>. <?php echo $this->lang->line('all_right') ;?>.</p>



      <ul class="button language_button white fr">

        <li class="icon_single language fl"></li>

        <li class="flag en fl"></li>

		<li class="flag es fl"></li>

        <li class="flag de fl"></li>

        <li class="flag it fl"></li>

        <li class="clear"></li>

      </ul>

	  

	  <!--<ul class="skinner fr">



		<li class="fl"><a href="#" rel="style_blue" class="styleswitch skin skin_blue fl"></a></li>

		<li class="fl"><a href="#" rel="style_green" class="styleswitch skin skin_green fl"></a></li>

		<li class="fl"><a href="#" rel="style_red" class="styleswitch skin skin_red fl"></a></li>

		<li class="fl"><a href="#" rel="style_purple" class="styleswitch skin skin_purple fl"></a></li>

		<li class="clear"></li>

	 </ul>-->

    </div>

  </body>

</html>